package cn.cvs.dao.user;

import cn.cvs.pojo.SysUser;
import cn.cvs.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {

    public User selectById(@Param("id") Integer id);

    int insertUser(User user);
    int updateUser(User user);

    User selectByAccount(@Param("username") String username);

    List<User> list(@Param("name")String name,@Param("pageBean")Integer pageBean,@Param("pageSize")Integer pageSize);

    int count(@Param("name")String name);

    int deleteById(@Param("id")Integer id);
}
